package com.shaw.tiger;

public class MVCPatternDemo {

	public static void main(String[] args) {
		Student s = retriveStudentFromDatabase();
		StudentView view = new StudentView();
		
		StudentController controller = new StudentController(s, view);
		controller.updateView();
		
		controller.setStudentName("tiao");
		controller.updateView();
	}

	private static Student retriveStudentFromDatabase() {
		Student s = new Student();
		s.setName("shaw");
		s.setRollNo("10");
		return s;
	}

}
